package com.myself.community.entity;

import lombok.Data;

import java.util.Date;

@Data
public class Message {

    //主键
    private int id;

    //消息的发送者id
    private int fromId;

    //消息的接收者id
    private int toId;

    //会话id:针对于双方
    private String conversationId;

    //发送的消息内容
    private String content;

    //消息的状态：0-未读;1-已读;2-删除;
    private int status;

    //消息发送时间
    private Date createTime;

}
